package com.hi5.stexviewer.message;

/**
 * Message POJO.
 *
 * @author mate
 *
 * @param <C> data class
 */
public class Message<C> {
    private Object type;
    private C data;
    private Customer sender;
    private Customer recipient;

    public Message(Customer sender, Object type, C data) {
        this.sender = sender;
        this.type = type;
        this.data = data;
    }

    public Object getType() {
        return type;
    }

    public void setType(Object type) {
        this.type = type;
    }

    public C getData() {
        return data;
    }

    public void setData(C data) {
        this.data = data;
    }

    public Customer getSender() {
        return sender;
    }

    public void setSender(Customer sender) {
        this.sender = sender;
    }

    public Customer getRecipient() {
        return recipient;
    }

    public void setRecipient(Customer recipient) {
        this.recipient = recipient;
    }
}
